The P4 code does not require a square matrix like the Frank, P1, and P2 codes. The code order (N) is the number of values in the phase pattern. The number of items in the Frank, P1, and P2 codes patterns is N2
The default P4 code Code Order is N = 16.
The P4 code has N elements and is defined as:
i
Where i ranges from 1 to N. For example, the P4 code with N = 16, by taking phase value modulo is given by the following sequence:
16
=
0
![]()
![]()
![]()
![]()
![]()
![]()
![]()
0
![]()
![]()
![]()
![]()
![]()
![]()
![]()
The figure below shows the spectrum of a 10 us pulse using P4 Coded phase modulation, where N = 100.